@import "icomoon.less";
@import "media.less";
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    display: block;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

ul {
    list-style: none;
}

img {
    display: block;
}

.clearfix:after {
    display: block;
    content: "";
    height: 0;
    clear: both;
}

.pull-left {
    float: left;
}

.pull-right {
    float: right;
}

@baseFont: #888888;
body {
    font-size: 16px;
}

header {
    img {
        width: 100%;
    }
}


/* 内容快 */

.container {
    padding: 0 .28rem;
    background-color: #f7f4f1; // border: 1px solid red;
    /* 清楚边框塌陷 */
    overflow: hidden;
}

.box_title {
    font-size: .28rem;
    color: @baseFont;
    margin-top: .26rem;
    margin-bottom: .28rem;
    .pull-left {
        color: #000;
    }
}


/*  全场优惠卡片 */

.cart {
    border-radius: 10px;
    background-color: #fff;
    overflow: hidden;
    margin-top: .28rem;
    .cart_content {
        height: 2.34rem;
        background-color: #55bc75;
        padding: .37rem .26rem .34rem;
        position: relative;
        .cart_title {
            font-size: .46rem;
            color: #fff;
        }
        /* sale */
        &:before {
            display: block;
            content: "";
            position: absolute;
            background-image: url("../images/sale.png");
            background-size: 1.46rem 1.46rem;
            top: -.2rem;
            right: -.05rem;
            width: 1.46rem;
            height: 1.46rem;
        }
        .cart_description {
            font-size: .24rem;
            color: #bdf3ce;
            margin-top: .22rem;
        }
        .time {
            margin-top: .28rem;
            font-size: .22rem;
            color: #fff;
            .pull-right {
                color: #bdf3ce;
                background-color: #2a603b;
                padding: .02rem;
                border-radius: 0.05rem;
            }  
        }
    }
    .cart_tool {
        position: relative;
        padding: .3rem 0 .26rem;
        font-size: .26rem;
        &:before {
            display: block;
            content: "";
            background-image: url("../images/icon.png");
            background-size: .24rem 0.8rem;
            height: .08rem;
            width: 100%;
            position: absolute;
            top: -.08rem;
            background-repeat: round;
        }
        a {
            width: 50%;
            text-align: center;
            float: left;
            color: @baseFont;
            span {
                color: #55bc75;
            }
        }
        &>a:first-child {
            border-right: 1px solid #e8e2d9;
        }
    }
}


/* 优惠券 */

.cart_coupon {
    .cart_content {
        background-color: #a974bc;
        padding-top: 0;
        .cart_title {
            font-size: .24rem;
            big {
                font-size: .8rem;
            }
        }
        .cart_description {
            margin-top: .56rem;
            font-size: .22rem;
            color: #fff;
        }
        .time {
            margin-top: 0;
            .pull-right{
                background-color: #6a4279;
                color: #f2d8fb;
            }
        }
    }
    .cart_tool{
        a{
            width: 33.33%;
            span{
                color: #a974bc;
            }
        }
        & a:nth-child(2){
            border-right: 1px solid #e8e2d9;
        }
    }
}

/* 添加优惠券 */
.box_add{
    margin-top: .26rem;
    height: 2.26rem;
    border:1px dashed @baseFont;
    background-color: #fff;
    color:#aeaeae;
    text-align: center;
    a{
        margin-top: .4rem;
        p{
            span{
                font-size: 1.06rem;
            }
        }
        .box_des{
            margin-top: .16rem;
            font-size: .26rem;
        }
    }
}

/* 提示*/
.footer_tips{
    margin: .62rem 0;
    p{
        margin-top: .05rem;
        font-size: .24rem;
        color: #999999;
    }
}